/*****************************************************************************/
/*                                                                           */
/*    Domino Operation System Driver Module                                  */
/*    File System Routines                                                   */
/*                                                                           */
/*    Copyright (C) 2006-2014 Laszlo Arvai                                   */
/*                                                                           */
/*    ------------------------------------------------------------------   */
/*    Drives and Volmes handling routines                                    */
/*****************************************************************************/
#include <fileVolumes.h>		
#include <drvMassStorage.h>

#ifdef fileMULTI_DRIVE_SUPPORT
#else
fileVolumeInfo g_file_volume_info;
#endif

dosBool fileReadSector( dosByte in_volume_index, dosByte* out_buffer, dosDWord in_lba )
{
	return drvMSReadSector( out_buffer, in_lba );
}

dosBool fileWriteSector( dosByte in_volume_index, dosByte* in_buffer, dosDWord in_lba )
{
	return drvMSWriteSector( in_buffer, in_lba );
}

#ifdef fileMULTI_DRIVE_SUPPORT
dosByte fileGetVolumeIndexFromDriveLetter(dosChar in_drive_letter)
{
}
#else
dosByte fileGetVolumeIndexFromDriveLetter(dosChar in_drive_letter)
{
	if(g_file_volume_info.FATVolumeInfo.DriveLetter == in_drive_letter)
		return 0;
	else
		return fileINVALID_VOLUME_INDEX;
}
#endif



